﻿global using Devonline.Core;
global using Devonline.Entity;
using System.ComponentModel.DataAnnotations.Schema;

namespace Devonline.Identity.Admin.Models;

public class IdentityViewModel : ViewModel
{
    /// <summary>
    /// 名称
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// 昵称
    /// </summary>
    public string Alias { get; set; }
    /// <summary>
    /// 头像
    /// </summary>
    public string Image { get; set; }
    /// <summary>
    /// 身份类型
    /// </summary>
    public AuthorizeType Type { get; set; }
    /// <summary>
    /// 描述
    /// </summary>
    public string Description { get; set; }
    /// <summary>
    /// 通用附件集合, NotMapped 用于记录实体对象上上传的附件
    /// </summary>
    [NotMapped]
    public ICollection<Attachment> Attachments { get; set; }
}
